package Shifu.MainServer.Management;

import java.io.*;
import Shifu.MainServer.Net.Seeder;
import Shifu.MainServer.Net.SeederShell;

/**
 * Classe utilizzata per la promozione dei peer
 * da Leecher a livello Seeder, contiene la nuova Shell
 * ed il nuovo stub.
 */

public class PromotionSet implements Serializable {

	private Seeder seederstub;
	private SeederShell seedershell;


	/**
	 * Costruttore
	 */
	
	public PromotionSet(Seeder seederstub,SeederShell seedershell) {
		this.seederstub = seederstub;
		this.seedershell = seedershell;
	}


	/**
	 * Ritorna il seederstub
	 * @return lo stub seeder
	 */

	public Seeder getSeederStub() {
		return this.seederstub;
	}

	/**
	 * Setta il seederstub
	 * @param seederstub lo stub seeder
	 */

	public void setSeeder(Seeder seederstub) {
		this.seederstub = seederstub;
	}

	/**
	 * Ritorna la seedershell
	 * @return la seedershell
	 */

	public SeederShell getSeederShell() {
		return this.seedershell;
	}

	/**
	 * Setta la seedershell
	 * @param seedershell la seedershell
	 */

	public void setSeederShell(SeederShell seedershell) {
		this.seedershell = seedershell;
	}

}
